The Ecological Bin Packing problem from UVa Online Judge (102) implemented in C++ with classes