Recursion algorithms: add find max subarray