A bunch of useful algorithms written in C++