simple density estimation routine added. no good choice, need something better