Fully implemented state function node_remove(), which does the heavy
lifting when removing a node from bstree.