An Algorithm for Isotonic Regression for Two or More Independent Variables