Globally-optimal greedy algorithms for tracking a variable number of objects | Synapse