Interface SortedPair<K extends Comparable<K>>