calculate jaccard index for two sorted streams of data