Implementations for popular algorithms in C++