TensorInv

Added tensorinv function.
why do you remove this?