Added exercises 2.1-2.8.

Added exercises 2.1-2.8 from the C++ Primer, 5th edition.