Implemented a window scanning and scoring iterator