Implemented more functionality in quaternion class