Maximum Subarray Kadanes Algorithm