tweaked hash table implementation, tablesize constant