copies the right pointer of the old node into the right pointer of the new
setright(p,right(q));