Radix tree implementation on NGram index