dissimilarity_to_similarity function

Convert dissimilarity metrics to similarity metrics