private void Swap(int a, int b)
    {
        AtomParticle temp = atomParticles[a];

        atomParticles[a] = atomParticles[b];
        atomParticles[b] = temp;
    }
 private void Reallocate()
 {
     particleMaxAmo = atomParticles.Length + 100;
     AtomParticle[] tempArray = new AtomParticle[particleMaxAmo];
     for (int i = 0; i < atomParticles.Length; i++)
     {
         tempArray[i] = atomParticles[i];
     }
     for (int i = atomParticles.Length; i < particleMaxAmo; i++)
     {
         tempArray[i] = InstantiateParticle();
     }
     atomParticles = tempArray;
 }