Updated cacheMatrix