Rotates a splay tree until the value is at the root, or would be between the root and one of its children.