Some functions for GreedyMotifSearch