Create two functions

To calculate the inverse of a given matrix