windows() generator function producing an interable of sliding windows from an array