Here I find the hashed index and later on I count how many times each index occured and that becomes the value of that index.
But from what I understand now, this should be switched to something like :
 h_index = MurmurHash( index, size, some_seed);
 h_vec[h_index] += vec[index];