commiting cacheMatrix