get median from two sorted array