slidingVector works
Minor optimizations
Add missing strictness in slidingWindow