added methods to compute jaccard similarities and output to file