mediam of two sorted arrays