Update main.cpp

prepare replace_node/rotate_left/rotate_right/ to make RbtNode->parent free