Algorithms Implemented in C++