implemented pool of particles
implemented log n