Updating tensor module to use factory methods for creation of zero and identity tensors / matrices.