implement unionBag and intersectBag