inv function

Compute the inverse of a matrix