Implemented whitening as a pre-processing step, in order to provide the logistic classifier with uncorrelated features. Also refactored to a more robust preprocessing interface.