Cognitive routing in UWB networks