Correct SVM with kernels implementation

Polynomial and Gaussian kernels