Transposes the input matrix.
matrix: An N-by-M input matrix
matrix
matrix: Transposed M-by-N output matrix.