BinaryTree implementation in Java.