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