Problems and future work
No need to compute entire matrix; more efficient solution possible
Chi-square test wrong for overlapping windows
Interval-splitting test?