adding kadane and flawed largest submatrix