https://medium.com/@monocosmo77/how-pairwise-comparisons-is-used-in-machine-learning-part4-8bac22f0f7e2