Data Structures and algorithms - Aho, Alfred V.; Hopcroft, John E. & Ullman, Jeffrey D. (Pearson, New Delhi, 1983)