added sum and squared sum methods in CKernel