Program use the iterate DFS algorithm, cause the recursive one was too heavy to run The recommended run is to call it from terminal "python main.py < slo1.in"