fix the Line of Best Fit algorithms