The two functions in the script cache the inverse of a matrix