Utility class that implements a multiset, a set with possibly repeated elements.