examples/vector: use new iterators to print