[core] start sketching the new Jaccard logic. Not yet finished