implemented find_missing_two_elements algorithm