implement delete and move strCmp out of the tree-specific code, and use the new interface on tree