Transposes a matrix by switching the row and column indices of a multidimensional array.
github.com/remarkablemark/matrix-transpose
remarkablemark/matrix-transpose