Restore IP Addresses_DFS.cpp a better version