The design and analysis of computer algorithms - Aho, Alfred V. (Pearson Education Ltd, New Delhi, 1974)