Recursive sliding window enumeration.