For example I have this matrix(3x3) and I want to make a new 2x2 matrix with the max values from all the submatrixes :