Added C++ mark-and-sweep garbage collector implementation.