finish bfs
change the bfs vertex struct,now we can pass it to the oper function
finish bfs no recursion