Implemented clump finding algorithm