Just an basic implementation of tree structured algorithm for routing in ADHOC networks and implementation of same in ns2