Union find algorithm for cluster finding very fast