Finish tree's stack layer order traversal