Chi2 function

Chi-squared kernel