I have this code to rightRotate a sub tree :
rightRotate
void rightRotate(mynode **parentPtr, mynode *child) { // make sure the arguments are valid for a