A Hierarchical Multiple-Target Tracking Algorithm for Sensor Networks