Add kernel functions - untested. Will be tested when I implement SVMs.