added sum methods for CCustomKernel
Merge pull request #2202 from lambday/feature/quadratic_time_mmd

added sum methods for CCustomKernel