Added the pn_kernel for likelihood normalization. Added support for templates, to use double precision when it is supported by device.