Modified energy efficient hierarchical clustering algorithm