add a faster but less memory efficient data structure for DFA.