Added MaxSubarrayProblem implementation