#67 fixed Least Squares Straight algorithm