implemented fitting a line segment to WLS