Maximum sub-array n^2, brute force