Add an attempt at a C++ rewrite for GRAPL.