Development of a Dynamic Collision Avoidance Algorithm for Indoor Tracking System Based on Active RFID