chi square test reference: - http://math.stackexchange.com/questions/2435/is-there-a-simple-test-for-uniform-distributions - http://en.wikipedia.org/wiki/Pearson's_chi-squared_test