Introduction to the design and analysis of algorithms - Goodman, S. E. (McGraw-Hill Computer Science Series, 1985)