. Returns: List[List[Segment]]: A list of lines, where a line is a list of Segment objects. Nr