Simple C++ influence map with tests.