further optimizations; lib svm broken