Solve the maximum subarray with divide and conquer in O(n) time complexity