A GA and Particle Swarm Optimization based hybrid algorithm