updating the changes made in the cacheMatrix