added dynamic array of particles,renamed vector to vect,trial() in particle class