use unique_{all,any,diff} instead of intersect, etc.

moved code from set.jl to array.jl
Also, fixed a bug (and added a test) in intersect(sets…)