Introduction to algorithms - Cormen, Thomas H. (New Delhi PHI Learing Pub., 2008)