Implement UnbalancedBinaryTree in Java