delineate_segments function

Split a river corridor into segments