Added function to generate the state path for a DFA
Added function to test if a string is accepted by a DFA