oops...forgot Density2K() method in mex file