https://medium.com/@monocosmo77/how-pairwise-comparisons-is-used-in-machine-learning-part3-5c85ffded82