Algorithms for C / C++