Works perfectly for  (numberOfMainArray mod NumberOfprocesses =0 )
to implements even if the division has remainder