Also posted at: Creating an array that works like a torus