The Design and analysis of Computer Algorithms - AHO, Alfred V. (Massachusetts Addison- Wesley, 1974)