Added ngram class support for Biarcs.java