add median of two sorted arrays