POJ#1674 Least pair swap to sort an array, greedy algorithm. RANK 20509