Implmentation of the code to cache the inverse of a matrix