Advanced Clustering Scheme for Wireless Sensor Networks