preprocess_data function

A feature-preprocessor (FP) method to pre-process training and test data