This is an efficient O(n) simulation of n particles in a 3D box. I have built my own little ascii-console animation to show the particles!