added `transpose` method.
added a test.