Added one_gram
Added general n_gram function (values slightly off, need to fix)