update solution for Median of two sorted arrays