SpatialGrid: added LineSegmentIterator class.