update

updated N-gram frequence
Revert "update"

This reverts commit a823fe0755f2b91f71f1a25aca26d5175dd5b40f.
update

update N-gram freqs and modified Ngram function