updated binary tree class