Added function for Jaccard Index, unions and intersections for arrays