perfect hash index working