https://medium.com/@monocosmo77/working-with-the-concept-of-halfspaces-in-machine-learning-part2-cbb8eb0d9de6