Pooled Adjacent Violators Algorithm
response variable
(optional) predictor vector (otherwise y is assumed to be a priori sorted according to relevant predictor)
weights (optional) weights
List with index (idx) of jump points and values (value) at each jump point.