Ruby binary search trees