LibSVM example from StackOverflow