Made new variable type Matrix for use with matrixes and adjusted all functions to accept the new variable and utilize it. Still need to do some work with initializing the matrices and allocating new space with functions. Also may want to use SMatrix* rather than SMatrix.

Signed-off-by: PandaDragonThing <jacob@linuxrocket.net>