Find kth element in two sorted arrays