Draft for finding nearest neighbours. Bug in the code since it does not return any existing particles.