Move old code for random walks and BFS to separate file.