Added interface for the Maximum-Subarray Problem