DP solution for calculating the max sum of apples from a matrix. Still
need to figure out how to reconstitute the elements of the solution.