[cookie-clicker-alpha] Add the C++ implementation that solves the problem.