Transposes a matrix (swaps rows and columns)
The matrix to transpose
A new matrix where M[i][j] becomes M[j][i]
Transposes a matrix (swaps rows and columns)