kernel density estimation done and tested