C++ algorithms library