TensorInv

Added tensorinv function.
@abergeron
I don't know how to submit an argument which is not a scalar.