finished writing nfa_copy. added a convenience macro function into map.