ADD: copy-paste first steps towards a C++ port, for searching for solutions