set: implement set union and intersect.