NGramsTable rewrite and unification with DocsTable
DocsTable currently is rewritten to use Reactix. Do the same with NGramsTable. Also, remove duplicated code (lot of code in DocsTable is similar to what is in NGramsTable). After this refactoring, the underlying Table mechanism can be more easily ported to Reactix as well.