fixing a minor issue with allocation in bfs code