Fixed transpose(). Now works for nxn, 1xn, and nx1 matrices/vectors. Fixes #8