Fix replacement bug and fitness update.

The original population object was not being replaced by the new
population after mutation and other operations. Fixed the fitness value
update. Add global crossover.