Piece-wise linear segmentation by dynamic programming

WWW: https://gitlab.com/raim/dpseg
