Corrected lowest_post_order to take into account all descendants instead of only the direct children.