Algorithms in C++, 2nd Ed (2002)

by R Sedgewick