Path Integration Algorithm for Mobile Wireless Networks