This is self practice for implementing some algorithms in textbook, Introduction to Algorithm, 3rd