Added methods for breadth-first tree building
MAin breadth-first code needs implementation