public static int[][] resetRowCol(int[][] mat) {
		boolean[] rows = new boolean[mat.length];
		boolean[] columns = new boolean[mat[0].length];
		for(int i = 0; i < mat.length; i++) {
			for(int j = 0; j < mat[0].length; j++) {
				if(mat[i][j] == 0) {
					rows[i] = true;
					columns[j] = true;
				}
			}
		}
		for(int i = 0; i < rows.length; i++)
			if(rows[i])
				nullifyRow(mat, i);
		for(int j = 0; j < columns.length; j++)
			if(columns[j])
				nullifyColumn(mat, j);
		return mat;
	}