Added LinsegStream class that generates line segments between breakpoints