fixed union method in buildautomaton class 'missing @ in symbolStack'; added concatenation method in buildautomaton class