Change whiten_features to NOT mutate the input matrix

whiten_features to NOT mutate the input matrix, this caused me problems