public static Node  successor(Node node){
		if(node.right != null)
			return minimum(node.right);
		Node y = node.p;
		while(y != null && node == y.right){
			node = y;
			y = y.p;
		}
		return y;
		
	}