median of two sorted arrays solved