Fixed call methods in BuildAutomaton, removed parameters iniside build(regularExp)