Simple breadth first search