Some famous algorithms implemented in C++