added some more functionality
utility functions for motifs, used by motif clustering code