resultClustering function

Method for filtering clustering results.