maximum subarray
median of two sorted arrays