starting to optimizing the program for the grid (sge cluster)