Add breadth-first traversal