The Generic DownSampling Tool