Optimal cache-oblivious implicit dictionaries