implemented repeat methods.  implemented clone method in order to fix bug with concatenate(Automaton). implemented emply() emptyString() and total(Set[Char]) in Basic Automaton.