ACAutomaton template by some nb
my implmentation of ACAutomaton