Add a constructor for List<T> that takes iterators
Ensure that all data has been written before closing stdin