added jaccard similarity and dice similarity to code