Javacode of BinaryTree