Density estimation via hierarchies of nonparametric priors