Ruby binary search tree