Introduction to algorithms - Cormen, Thomas H...[et.al.] (McGraw Hill, 2004)