reg_2d function

Isotonic Regression on 2D input.