Sample code packages are from MIT 6.006: Introduction to Algorithms