get median of two sorted array