a binary tree example and traversal methods