debugging malloc, size=N*sizeof(int)