int ehash_search(EHash* t, int key) {
int idx = key & ((1 << t->global_depth) - 1);
Bucket* b = t->directory[idx];
for (int i = 0; i < b->n; i++)
if (b->keys[i] == key) return 1;
return 0;
}