Algorithms in C : Parts 1-4: Fundamentals, data structures, sorting, searching - Sedgewick, Robert (Addison-Wesley Publishing Co., 1998)