Update samplers.cpp

Refactoring had slowed down the performance by a factor of 2, because the loop had been run completly twice.