Added desctructors for tree and nodes