extend LibSVM to add new functionality