BFS in face contur finding