Update maxSubMatrix