Kernel Methods for Machine Learning with Math and R