Lots of changes.

- Removed the unneeded diagrams.
- Included the diagrams into the contractor section.
- Fixed up algorithms to use correct dimension.
- Wrote pseudo-code for Improve-Site