Rebuilt the build_tree_postorder() function. Testing for correctness and performance.