A computer program that reserves slots at an intersection might be a way to ease gridlock and boost safety.