First implementation of iterator scaffolding.
Work in progress on semiring.