Added breadth first traversal method