Introduction to the design and analysis of algorithms - Goodman, S.E. (McGraw-Hill Book Co., 1977)