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