segment_pelt function

Segment a time series using the PELT algorithm