binary tree class and test