optimize the search of empty slot in the hashid_node array