Add length of segments union
Merge pull request #8 from ngthanhtrung23/master

Add length of segments union