Exercises from chapter 1 of "Data Structures and Algorithm Analysis in C++" by Mark Allen Weiss