fixed bug where hash code is not generated when creating Ngram
made FrequencyDistribution cloneable