Added least squares (up to 4 points) calibration