Changed idea, storing char frequencies as integers of occurrence rather than probabilities.