localization in various networking environments such as wireless sensor and ad-hoc