adopted for building with clang
changed insert/delete logic in HashTable