Added a matrix transpose. Works on vectors as well. Fixes #6 and #7