Finish stack style tree preoder traversal