Implementation of <Introduction to Algorithms>