New clustering algorithm