add a function to calculate Jaccard similarity coefficient