added quadratic fitness function