Solving clump finding problem