used iterator instead of complicated nested for loop bs
used iterator instead of complicated nested for loop bs

pratikshashroff/pcura,pratikshashroff/pcura,ROBO3D/CuraEngine,markwal/CuraEngine,ROBO3D/CuraEngine,markwal/CuraEngine,markwal/CuraEngine,Ultimaker/CuraEngine,alephobjects/CuraEngine,totalretribution/CuraEngine,totalretribution/CuraEngine,Ultimaker/CuraEngine,alephobjects/CuraEngine,ROBO3D/CuraEngine,pratikshashroff/pcura,alephobjects/CuraEngine,totalretribution/CuraEngine