implemented TensorBasis and basic tensor functionality