add a mex file for kernel calculation, and add support for DML dataset