Algorithms and concepts in C++