Added a matrix and vector class.