working on binarytree class