The Blocks Problem from UVa Online Judge implemented using classes in C++