A unified shared-memory scheme for metaheuristics ⋆