a collection of metric space utilities