add_word adds the word [first, last) to the language
recognized by a. The tag t is assigned to the newly
created final state. add_words adds a set of words to the
language, which means start points to containers of
characters. a must have a tree structure.