Java implementation of the Adaptive Regression by Mixing algorithm