added least square solver for laser parameter calibration