Solutions for Introduction to Algorithms