get the median of two sorted arrays in O( log(m) + log(n) )