Median of two sorted arrays AC (find k-th smallest elements in two sorted arrays)