Introduction to Algorithms - Thomas H.Cormen; Charles E.Leiserson; Ronald L.Rivest (Prectic Hall of India New, 2001)