Added reduce option

- Samples to be plotted or written can be reduced by user specified
factor (-r, --reduce)