The design and analysis of computer algorithms - AHO, Alfred V.,HOPCROFT, John E.,ULLMAN, Jeffrey D. (Addison Welsey, 1974)