Exercises from Chapter 10 of DataStructures Book