@ne555 , sorry for late reply .
Can you please now tell me how to get rid of this array size problem .
1000 * 1000 is maximum capacity for one array (though we may use multiple 10^3 * 10^3 array , but it doesn't seems sensible) ???
Or tell another way of storing and carrying rest programme compatible to same ?