https://medium.com/@monocosmo77/understanding-bezouts-theorem-with-reference-to-machine-learning-part3-5c02b93c84af