<Introduction to Algorithms> codes