Sample code of "Introduction to Algorithm"