TensorSolve

Added tensorsolve function.
It look good, but it took me some times to understand. Can you add a comment that explain this. Also no space in ndim=...)