Introduction to algorithms (PHI Learning, 2009)