Rename sink function generation predicate
Updated all predicates and relations passed to algorithms to operate on iterators, for consistency