merging vectors and matrices into a tensor class.  adding extensions for the matrix class in specific.