private void mergeTwoRegions(DenseRegion r1, DenseRegion r2){
		Cluster c = null;
		int clusterID =0;
		if(!r1.getIsInCluster() && !r2.getIsInCluster()){
			c = new Cluster(this.clustersCount);
			c.addDenseRegion(r1);
			c.addDenseRegion(r2);
			r1.setClusterID(c.getID());
			r2.setClusterID(c.getID());
			this.clusters.add(c);
			this.clustersCount++;
			
		}
		else if(r1.getIsInCluster() && r2.getIsInCluster()){
			mergeCluster(this.clusters.get(r1.getClusterID()), this.clusters.get(r2.getClusterID()));
		}
		else if(r1.getIsInCluster()){
			clusterID= r1.getClusterID();
			c = this.clusters.get(clusterID);
			r2.setClusterID(clusterID);	
			c.addDenseRegion(r2);
		}
		else if (r2.getIsInCluster()){
			clusterID = r2.getClusterID();
			c = this.clusters.get(clusterID);
			r1.setClusterID(clusterID);
			c.addDenseRegion(r1);
		}
				
	}