Code for different assignments in Introduction to Algorithms (6.006).