Written piece of code to cache the inverse of a matrix.