completed data structure and test program for perfect hash table