Tensors: rank, entropy and entanglement