BINARY-TREE-POSTORDER-TRAVERSAL problem with iterative solution