fix bug of bfs in get_multicast_tree_path function