Another easy patch which makes the code a lot faster. Also, this patch removes the quasi-Newton code. So far that code hasn't helped at all. Quasi-Newton methods will need more work in the future. [[Imported from SVN: r8588]]