Simple helper method for 'gbest' neighborhood
pso.neighborhood.KN(i, n)
i
The particle position
n
the size of particle population