Seamless Tracking of Group Targets and Ungrouped Targets Using Belief Propagation