Solution to the cluster detection problem.