Maximum Contiguous Subarray Dynamic Programming Knapsack