Add more debug print statements to find_pair