Implement a binary tree in Ruby.