Sliding window

Added implementation of sliding window