Implementation and Testing of an Energy and Spatial Efficient Clustering Method for Ad-Hoc Sensor Networks