Futher work on clustering algorithm.