Created MedianOfTwoSortedArrays class.