Maximum Subarray Problem Binary Search Algorithm Time