Data structures and algorithms - Alfred V Aho, John E Hopcroft, Jeffrey D Ullman (Addison-Wesley, New Delhi, 2000)