Cluster analysis via nonparametric density estimation