Algoritms for iterator sequences