added cubic and spherical kernels (copied from geoR)