Using apache Hama to implement Particle Swarm Optimization(PSO) and Genetic Algorithm(GA)