Added first function: dim.
Added an initial implementation of transpose.

Currently, it can only handled a limited set of matrices.