Converts Deterministic finite automata to regular expressions.