solution to Median of Two Sorted Arrays