public void insert(E x) { root = insert((Comparable)x, root); } protected BinaryNode insert( Comparable x, BinaryNode t ) { if(t == null) t = new BinaryNode(x); else if(x.compareTo(t.element) < 0) t.left = insert(x, t.left); else t.right = insert(x, t.right); return t; }