using find Kth element to find median of two sorted array