distance conversion in jaccard