Burkhard Keller Tree implementation in Ruby