Allow initialization with iterators