merging.segments function

Merge Adjacent Segments