Implementation of the algorithms in C Sedgewick Books