LeetCode 4 Solution: Find median of two sorted arrays