adding binary tree implementation in ruby