Fifteenth commit

After debugging it is found that there are some cases which do not belong to any if statements. This was due to the fact that the comparison operators "<" and ">" where only "greater" or "smaller" but not "greater equal --> <=" or "smaller equal --> >=". Though it is very unprobable to have a random number exactly 0.25, 0.5 or 0.75 but in millions*2000*100 random number generation they become probable to be produced. 
The bug produce a bizarre behavior, since if the position_x[i] or position_y[i] are not updated, an they are not initiated pointers, the result is very unpredictable. This was the thing which happened as the if statements where omitted and these pointers were not get updated.
A new debugging code is also going to be uploaded whenever debugging is demandable.