Functions to calculate the relative frequencies of the whole corpus (though just for the n-grams than appear more than once, for economy reasons) and insert them into the database
Reworked functions to calculate frequencies, resulting in a brutal increase in speed (minutes instead of days)
Now having trouble with calculating frequencies for the whole corpus: exceding the Mongodb memory limit