Distance-Based Location Updating Cost Analysis in Mobile and Wireless Environments