complete assignment : caching the inverse of a matrix