fix hash_insert bugs. Note that 1) maximum threads in a block is 1024, 2)__threadfence()/__threadfence_block() is needed to make global memory write visible, 3) the prepared input should be in designated hash blocks, 4) the second hash function needs to hash the element in the same hash block