HDAR: Hole Detection and Adaptive Geographic Routing for Ad Hoc Networks