Changed Entropy function
Unfinished initial work for svm training