DynProg computes the change points given a cost matrix matD and a maximum number of segments Kmax
Useful links