Added a basic matrix class to be used later in some of the collision detection and transformation methods.