This file calculates the inverse of a matrix