implemented weightings for svm.  Does not seem to be working correctly for some reason