Implement Golden Section search and Brent's method.
Merge pull request #46 from sebastien-villemot/master

Implement Golden Section search and Brent's method.
Make algorithms more type-stable (fix #38)