unordered_multimap removed
Separated automata routines
Refactor #1 (with bugs)