Implemented transpose and inverse functions; added divide