Introduction to algorithms - Cormen, Thomas H (Prentice-Hall of India Pvt. Ltd., New Jersey, 2000)