Distance-based multivariate trees for rankings