CCMS: A Greedy Approach to Motif Extraction