Several changes in ngramFrequencies.pig, and particularly in smoothNgrams and smoothNgreams.pig to accommodate ngrams with arity >2.