create degree_of_similarity.R