median of two sorted arrays copy