Continued work on swap example.
Merged
Added first part of the section 'Operations on the heap'.