Implement composition using chunk iterators