naive solution to Median of Two Sorted Arrays