Algorithms from Data Structures class