Implement iterator merging for cat()