implement the init function of hopscotch hashmap