https://medium.com/@monocosmo77/working-with-lagrange-polynomials-part1-artificial-intelligence-eef038c27894