3. Breadth first search (BFS)