Added dictionary generator and dictionary weighing based on an ngram
weight distribution.