Moved exercises, fixed table.
Moved exercises to the end. Cleaned up.
Added necessary package.
Fixed chapters 5 and 6.

Moved exercises to the end in both chapters, and cleaned up both
.tex-files. Fixed a table in Chapter 6 that was wider than the
textwidth.