red-black tree root SEGV

when red-black tree root is changed,need assign its parent to NULL