All C++ algorithms