Create algorithms of C++