Implemented the chi-squared gradient as a C module for the target functions.
This simply translates the Python code into C to allow any target function C modules to build its own gradient function.
Authored by: bugman 2014-08-26
Parent: [r25258]
Child: [r25260]