reg_1d function

Isotonic and Unimodal Regression on 1D input.