Simple rolling window implementation