Refactored #get_adjacent_pairs_large