Added union, intersection, difference and uniq functions and their tests