Breadth and Depth first tree traversals