Minimal perfect hash function