Update CacheMatrix