updated cacheMatrix