add cacheMatrix