A binary tree node
public class Node { public int data ; public Node left , right , parent ; public Node ( int d ) { data = d ; left = right = parent = null ; } } public class BinaryTree { static Node head ;