TensorInv

Added tensorinv function.
remove this import of elemwise as you don't need it anymore following my other comment.