The design and anaysis of computer algorithms - Aho, Alfred V. (Addison-Wesley Publishing Company, Inc, 1975)