added StatisticalTest: calculateChiSquare (not yet tested)