version 1: ac-automaton with 4 x multithread, 300ms intel i5