Text this: Iterative algorithm for locating nodes in WSN based on modifying average hopping distances