Divide line segments