add virtual identifier to the destructor of the Stringhashfunction class