Start the median of two sorted arrays problem from LeetCode