Weighted Clustering Algorithm in Mobile Ad-Hoc Networks