add LineSegment class.
rename FoldableText class to EditedText.
add EditedTextTests2 class.
use RangedValues for line segments.