Regression analysis algorithms from ImageJ1 for easy use on Android and native Java