cacheMatrix working