The design and analysis of computer algorithms - Aho, Alfred V. (Addison-Wesley Publishing, 1974)