Analysis of Clustering Algorithms in Mobile Ad Hoc Networks