Analysis of a Distributed Algorithm to Determine Multiple Routes with Path Diversity in Ad Hoc Networks