adding kernel density estimation/evalutation functions