Fix bugs in maximum subarray stuff.
My amazingly crappy implementation of matrix multiplication.