Introduction to algorithms - Cormen, Thomas H; Cormen, Thomas H. (The MIT electrical engineering and computer science series, 2003)