Implement epsilon closure for NFA.