modify bfs in Graph.py and add free_list.py in others