updated nsga2 to use attributes.
nsga2 example
.