Update chi2gof_ed.m