solved [median of two sorted arrays]