Introduction to the design and analysis of algorithim - Goodman, S. E