mikrom,
I used your suggestion, and it can run, but it takes time so long that I wonder if it is still running. When I do (30,30,2,30,30,30) (AND I DID NOT USE MULTIDIMENSIONal ARRAYS!), each loop is about 4 seconds. When I do (250,250,2,250,250,250), the first loop takes 1 hour and it still...