Update Sampling.cpp