Chi Squared
Merge pull request #5 from ncolaprete/master

Chi Squared method
added doc and comments
Merge pull request #6 from iFlyCode/master

merge all copies of master into programming.