Two different implementations for hash table, depending on buckets per slot