adding jaccard similarity function