Added new methods to Quaternion and Matrix