Refactored libsvm for easily plugging custom kernels (e.g., Tree Kernel) written in Java.