Maximum subarray divide and conquer solution ACed