Bread-first search traversal is implemented