class for finding large clusters
added missing threshold check