Clustering based on kernel density estimation: nearest local maximum searching algorithm