Introduction to the design and analysis of algorithms - Goodman, Seymour E. (Computer science series, 1977)