Implemented state function node_remove(), which will be used to
actually remove a node from the tree. TODO: implement the case where
there are two children.