Introduction to Algorithms Solutions