Assignment2: Caching the inverse of the matrix