Proposal of an Routing Algorithm for Distributed Wireless Networks