A basic implementation of Aho-Corasick in Scala. Not thread safe because the tree uses mutable state.