matlab openmp code to compute chi2 kernel