A C++ implementation of the GNG algorithm