Inversematrix

Calculates an inverse of a matrix