Implement union and difference methods.