Changed MultiKernel to accept a function describing how to select between kernels.