Chapter 2 and 3 homework from Data Structures and Algorithms book