C++ algorithms written from papers as part of my PhD