libsvm writing optimizations
optimization to BestCatSplit