add node and breadth first traversal