Find the nearest C++ implementation of the algorithm