Sliding windows algorithm working