Fix Matrix.transpose

transpose didn't work.

e.g. `result[0]` was `undefined` -> `result[0][0]` doesn't work