Update Post Order Traversal Algorithm