Added function contract() in TensorField