Fix GA CUDA implementation.

Notes:
* Fixed indexes on elitism replacement.
* Fixed indexes on whole_crossover implementation.
* Fixed indexes and cardinality of tournament candidate reservoir, and agent_prns.
Fix PSO CPU implementation bug.

Notes:
* Typo on cognitive vector initial evaluation hack, swapped values back prior
  to evaluation. The current implementation uses the population transformed
  array in the following way: It stores the initial cognitive vector
  within the transformed population array. It then evaluates the initial values. Copies the values back to the cognitive vector, and restores population.