https://medium.com/@monocosmo77/working-with-maximum-weighted-matching-part1-machine-learning-825abf54180