Tensors and their applications