Tree density estimation