Blocks-on-pattern cover with a genetic algorithm