CUPID: A Clump Identification and Analysis Package