int n = 1000 ; /* Matrix size (if you change value of n, be sure to also change c[]*/