val Q=Set(0,1,2);
val F=Set(2);
val d=new DFA(Q,F,0,dfa1_delta,Set('a','b'));
println(d.accepts(List('b','a')));