sum of error fitness function