adding traversal methods to binary tree class