Advanced Data Structures Homework