Preprocess nonlin detrend

Added a data preprocessing method that does linear detrending followed by percentile conversion.