chiquad_red function

Reduced chi-squared