Merge sorting with pairs and tuples.
Sorting using methods with implicit parameters.