C++ tutorial for Cpp Algorithm