A Dynamic Swarm Firefly Algorithm Based on Chaos Theory and Max-Min Distance Algorithm