and call freeMemory() from within loop().
Always assuming there's enough RAM left over from your huge array...