TensorInv

Added tensorinv function.
why do you limit to 3 and 4 dimensions? The doc don't tell that and from what I understand, it should support other case. It is just not in the example section.