another method for median-of-two-sorted-arrays