Implement update for Sets.