test program 1000 cubes.