Algorithms in C. - Sedgewick, Robert (Addison-Wesley Publishing Company, 1990)