-extern void dbg_hit_on(bool b);
-extern void dbg_hit_on_c(bool c, bool b);
-extern void dbg_before();
-extern void dbg_after();
-extern void dbg_mean_of(int v);
-extern void dbg_print_hit_rate();
-extern void dbg_print_mean();
-extern void dbg_print_hit_rate(std::ofstream& logFile);
-extern void dbg_print_mean(std::ofstream& logFile);
+
+template<class Entry, int Size>
+struct HashTable {
+ HashTable() : e(Size, Entry()) { memset(&e[0], 0, sizeof(Entry) * Size); }
+ Entry* operator[](Key k) { return &e[(uint32_t)k & (Size - 1)]; }
+
+private:
+ std::vector<Entry> e;
+};