Removed the parfor loop from layer_1

Removed the parfor loop for layer_1, since the variables in the function
xTranslate_sum and yTranslate_sum were loop dependent.