Function to find the maximum square size possible with the such that every submatrix have sum less than the given sum
function maximumSquareSize ( mat , k ) { let aux = new Array ( N ) ; for ( let i = 0 ; i < N ; i ++ ) { aux [ i ] = new Array ( M ) ; } preProcess ( mat , aux ) ;