draft of perfect hashing index