methods for traversing binary trees 1515620