Appendix 2.
Illustration of sliding window algorithm.