3d terrain visualization and CPU parallelization of particle swarm optimization