a nonlinear detrending percentile preprocessor

Adding capability to do nonlinear detrending with percentile adjustment during preprocessing