merge-ort: implement compare_pairs() and collect_renames()