Moved the function 'build_dfa' to file regex_to_nfa.py. To gather all functions
related to automatas in a single file and also to simplify the tests to avoid
cluttering them with a lot of import statements.