TensorSolve

Added tensorsolve function.
I was thinking of the code documentation, directly in the code.