added basic methods for a binary tree