Computing Kemeny Rankings from d-Euclidean Preferences