Self-implemented Aho-Corasick-automation This is a naive implementation of AC Automation when I was boring on the train.