fitness function = 1/cost