Fast and Efficient Nearest Neighbor Search for Particle Simulations