How to program the Best Fit Line