added new Tensor class (Matrix extends Tensor)