Added mergeNSets to sets.h