Median of Two Sorted Arrays problem