linsquare fit