Use type aliases for iterators; replace Entry with tuples.