Fix reverse iterator
Pair comparator