Implement NFA to DFA and minimized DFA