Well-known algorithms implemented in C++