segment_cga function

Segment a time series using a genetic algorithm