Function to perform Breadth-First-Search in Binary Tree