Added a utility method for breaking lines into smaller segments of equal
length.
minor