Code for CS 187 (Data Structures)