Update DistributionAlgo.cpp