Added the matrix3 and matrix4 template classes and all the matrix typedefs