AD HOC And Wireless Sensor Networks