neighbor calculation for particles