iterative post order tree traversal implementation