MFC-based least squares linear fitting software