added Matrix class

created matrix class to store rotations and translations.
gave each cubie a<vector> to store its transformation history.