Java, Node Tree, Breadth First Search