cheating from the internet

http://zvkemp.github.io/blog/2014/04/25/binary-search-trees-in-ruby/