Small tweaks
Changed implementation of particle assignment
Optimizing particle assignment on GPU
Optimizing further
Revert "Optimizing further"

This reverts commit 17f4e6f14d37a127f4b133bc469476752cb35646.
Optimizing
Optimizing further
Some small optimizations