If you know the algorithm then what is the problem to code it with C++?