Online gathering algorithms for wireless networks door