added old.dens to npudens in preparation for new estimation routine
added tree-build code to np_density
density + trees