binary search tree implementation in Ruby