freq: New module split out from mfreq_analysis

The module freq compute the character frequencies of a string with
respect to a given charset. It is just split out of mfreq_analysis,
leaving the later only the analysis work.

Signed-off-by: Celelibi <celelibi@gmail.com>