loopcuts function

Change-point p-values with backward elimination