Wrote distance ratio function, a function for calculating the utility of a distance function in metric space clustering