https://medium.com/codex/data-structures-algorithms-in-ruby-depth-first-search-post-order-for-binary-trees-d36fdbf2818e