Demo of clusterization process is available. There is algorithm of grouping points by special rules here. The main idea: cluster of points must be compact.