adding code for finding max sized submatrix with all ones in a matrix