added a matrix class and the necessary methods in the vector helper class