Sliding window diversity

Closes #5