implement TreeCollection::remove, see #5