The set package has set data structure for sets of integers: ads::IntSetSparse and ads::IntSetDense. To use these, include the file set.h.