adds doc-freq distribution for shared terms among pat-pairs