Algorithms for the union, intersection, and difference of two sets.