rebalance t and reset the balances of nodes involved in the remedy

q = (*pt)->rightptr;

if(keyvalue > q->key)

rr (pt)

else

rl(pt,q);