changed getAll() method in ngram to return ImmutableList instead