Tracking social groups within and across cameras