Add LinesIterator and test