Added a matrix class

All of the functions seems to be working now. Obj loader also sets up
arrays and attributes.
Perspective matrices are now working