Update Ngram.java

Hand merging