TensorInv

Added tensorinv function.
@nouiz 
Error came from rebasing