A Cognitive and Cooperative Tracking Approach in Wireless Networks