Updating code to return indexes
maximum subarray CLRS chap 4
CLRS chapter 4