Adding global algorithms based on iterators