Basic hash table for fast look up of particles in neighborhood.
dims : ND tuple
the range of the data to be put in the hash table. 0<data[k]<dims[k]
box_size : float
how big each box should be in data units. The same scale is used for all dimensions