Matrix and Quaternion prototypes a little refactoring.