The Design and analysis of computer algorithms - Aho, Alfred V (Addison-Wesley, Massachusetts, 1974)