nGramFilter fixed.
Merge branch 'phase2.5_revisingJin' into phase2.5_optimizing_code