Fixed HashTable secondary hashing, added to THT

Fixed collision issue and added collision tests to TestHashTable.