Modifying internal vectors to iterators