solutions for "Introduction to Algorithms"