Introduction to Algorithms - Thomas H Cormen; Charles E Leiserson Ronald L Rivest (PRENTICE HALL OF INDIA New Delhi, 2002)