Use cross validation to find the optimal values of cost C and gamma g for the RBF kernel