Solution to "Median of Two Sorted Arrays"