bfs; 1.py use collections.deque
2.py use list instead of collections.deque