make_kernel function

Kernel matrix KK construction for given datasets