exercise 2.59
take the union of sets with different elements
exercise 2.59 iterative solution
corrected ex2.59 -> now works for unordered sets