switch to Algorithms in C++ 3rd Edition