An Efficient Bee-inspired Auto-configuration Algorithm for Mobile Ad Hoc Networks