Added __device__ method to particles_kernel_impl.cuh to check if a grid
cell lies within the domain.  Grid size no longer needs to be a power of
2.