improved 2D comparison, corrected average similarity, and created greedy merging
merge fragments at pair level
count pair frequency and record pairs in dictionary
draw pairs