an algorithm for tracking multiple targets