Exercises from Data Structures and Algorithms in C++ book