Ft/downsample

Down-sampling function added