We can design an improved algorithm for the maximum subarray problem by observing
that we are wasting a lot of time by recomputing all the subarray summations
from scratch in the inner loop of the MaxsubSlow algorithm. There is
a much more efficient way to calculate these summations.