Use length for C strings
Add hat-trie code. Switch to ngram.c. Remove text_clean.