Square of Matrix 2x2, 3x3 Calculation

Select the size of the matrix