Code for density estimation with nonparametric cluster shapes.