add helper function for Jaccard Similarity