Re-writing Pollard-Brent pseudocode accrding to the original Brent's article.

XXX. not sure why the Riesel was talking about 3*2ⁱ, have to ask emanuele.
Cleanup.

* Fix memory-leak in Fermat's factorization;
* Fix grammar error in wiener's page.