Implemented the 'intersect' and 'difference' functions for IntSet and IntMap.