solution for median of two sorted arrays