Couple Sorting algorithm