using findKthElement to solve median_of_two_sorted_arrays