Have things partially working. I'm successfully getting the co-occurance matrix but I'm still working on applying the chi-squared test.
finished basic algorithm
Merge pull request #1 from jeremyprice/statistical_isolated_algorithm

Statistical isolated algorithm