Solutions to exercises in C++ Primer 5th Edition