Algorithms, 2nd Ed (1988)

by R Sedgewick