hand written hash table