implement a chi_square calculation using iterators
Merge branch 'master' of github.com:jyujin/libefgy