revise median of two sorted arrays