Update CPP.R

alternative for minmax added as comment