solve matrix-transpose