Example of CustomKernel with IndexFeatures in libshogun.