Fixed the model-free optimisation code to use the dchi2_element and d2chi2_element functions.
Authored by: bugman 2008-07-24
Parent: [r6947]
Child: [r6949]