Added warning handler, handles warnings that seem to be caused by
collinear features for the lda and qda classifier.