correct the destructor functions for forest and nodecontainer, previously, the nodecontainer destructor was called three times, because the three node container pointers in the forest class