ClumpFinding solution