edits to binarytree.py