Fixed problem with Algorithm 1 and 2.
Shortened to 18 pages.
Made space to add a discussion on Curve 3.