Intersection and union of sets