Fitness Function Based Particle Swarm Optimization Algorithm for Mobile Adhoc Networks