const_hash: simple hash table without dynamic memory allocation