Algorithms in C[plus-plus] — Robert Sedgewick