https://www.cienciasinseso.com/en/least-squared-method/
The shortest distance