GrEA: Grid-based evolutionary algorithm