C++ Implementation of Collecting Sets in Discrete Mathematics