Python code for Kadane algorithm to solve the maximum subarray problem