added a routing to find a subarray with max sum