Better handling of closed lines.
Fix arbitrary shared starting point.
Add a failing test.