Heuristic Search for Rank Aggregation with Application to Label Ranking