Te cycle for finding connected hosts is rewritten using DFS instead of
BFS. Tests are running OK #6