bigrams distribution and merging utility